package com.gc.widget.oilcan;

import java.io.InputStream;
import java.util.Map;

import com.gc.widget.api.Feature;
import com.gc.widget.api.FeatureFactory;

import android.content.Context;
import android.webkit.WebView;

public class OilcanPlugin implements FeatureFactory {
	public final static String MATCH = "intentHelper.startActivity(",
			MATCH_RESULT = "intentHelper.startActivityForResult(";

	public final static String LAST_VIEWED = "lastviewed";
	
	public Feature getFeature(String uri, WebView wv, Context ctxt,
			Map<String, String> params) {

		wv.addJavascriptInterface(new IntentHelper(ctxt), "oilcan");
		return new Feature() {

			public Map<String, Object> getJsInterfaces() {
				// TODO Auto-generated method stub
				return null;
			}

			public InputStream getJsScript() {
				return null;
			}
			
		};
	}

}
